<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>title</title>
    <script th:src="@{/static/js/jquery.min.js}"></script>
    <script th:src="@{/static/bootstrap-3.4.1-dist/js/bootstrap.js}"></script>
    <link rel="stylesheet" th:href="@{/static/bootstrap-3.4.1-dist/css/bootstrap.css}">
</head>
<body>
<div class="container">
    <h3>user's list page</h3>
    <hr>
    <a th:href="@{'/user/to/save/'+${deptId}}">添加</a>
    <table class="table table-hover table-striped">
        <tr>
            <th>工号</th>
            <th>姓名</th>
            <th>性别</th>
            <th>年龄</th>
            <th>操作</th>
        </tr>
        <tr th:each="user: ${userList}">
            <td th:text="${user.userId}"></td>
            <td th:text="${user.userName}"></td>
            <td th:text="${user.userSex}==0?'男':'女'"></td>
            <td th:text="${user.userAge}"></td>
            <td>
                <a th:href="@{'/user/info/'+${user.userId}+'/'+${deptId}}">修改</a>
            </td>
        </tr>
    </table>

</div>

<!--<div th:text="${deptList}"></div>-->
</body>
</html>